

<form class="form-horizontal" id="editAttrToObjectDialog_form" method="post" action="<?=base_url('attributes_to_object/reorder_object_attributes')?>" name="editAttrToObjectDialog_form">

    <input type="hidden" value="<?=$type?>" name="editAttrToObjectDialog_type" id="editAttrToObjectDialog_type">

    <fieldset>

        <?=info("To delete attributes, click on the delete icon in it's row. To reorder attributes, drag & drop them in the table.")?> 

        <table class="table table-striped table-bordered table-condensed"  id="sortable">
            <thead>
                <tr>
                    <th class="th-code">Attribute Code</th>
                    <th>Attribute Name</th>
                    <th class="th-action center">Action</th>
                </tr> 
            </thead>
            <tbody class="sort_content">

                <?  foreach($object_attributes as $object_attribute): ?> 

                    <tr>

                        <td><?=$object_attribute['ID']?></td>
                        <td><?=$object_attribute['name']?></td>
                        <td class="center">
                            <input type="hidden" name="order_<?=$object_attribute['ID']?>" value="order_<?=$object_attribute['ID']?>">
                            <a href="javascript:" class="move_post"><img src="<?=base_url()?>assets/img/move.png" /> </a>
                            <? if($object_attribute['custom']==1): ?>
                                <a href="javascript:" class="delete_object_attribute" rel="<?=$object_attribute['ID']?>">Delete</a>
                                <? endif; ?>
                        </td> 

                    </tr>                                      

                    <? endforeach; ?>

            </tbody>
        </table>

    </fieldset>

</form>